import 'package:flutter/material.dart';


class ContainerPage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
   return MaterialApp(
     title: '容器例子',
     home: Scaffold(
       appBar: AppBar(
         title: Text('这是一个title'),
       ),
       body: Center(
         child: Container(
           width: 200.0,
           height: 200.0,
           decoration: BoxDecoration(
             color: Colors.red,
             border: new Border.all(
               color: Colors.yellow,
               width: 8.0,
             ),
             borderRadius:
               const BorderRadius.all(const Radius.circular(8.0)),//边框幅度
           ),
           child: Text(
             'flutter',
             textAlign: TextAlign.center,
             style: TextStyle(fontSize: 28.0),
           ),
         ),

       ),
     ),
   );
  }

}